package com.neuedu.boot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;


@Data
@TableName("department")
public class Department implements Serializable {

    @TableId(value = "id", type = IdType.AUTO) // insert into depart (name,address)
    // @TableId(value = "id", type = IdType.INPUT) // insert into depart (id , name,address) values(1,xxx,222)
    private Integer id;
    private String name;
    private String address;
    private String leader;


    private Integer active;
    //cTime  create_time  uTime  update_time
    @TableField(value = "createtime")
    private Date createTime;

    // 告诉 MP 不是 数据库的字段，
    @TableField(exist=false)
    private String abc;

}